package com.mxfcode.back.mapper;

import com.mxfcode.entity.TSRole;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RoleMapper {

    List<TSRole> getRoleList();

    List<TSRole> getRoles();

    int updateRole(@Param("role") TSRole role);

    int updateRoleStatus(@Param("id") Integer id, @Param("roleStatus") Integer roleStatus);

    int insert(@Param("role") TSRole role);
}